package com.dfrz.stockMarket.model;

public class UserInfoModel {
	private int userID;
	private String userName;
	private String userPassWord;
	public int getUserID() {
		return userID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPassWord() {
		return userPassWord;
	}
	public void setUserPassWord(String userPassWord) {
		this.userPassWord = userPassWord;
	}
	@Override
	public String toString() {
		return "UserInfoModel [userID=" + userID + ", userName=" + userName
				+ ", userPassWord=" + userPassWord + "]";
	}
	public UserInfoModel(int userID, String userName, String userPassWord) {
		super();
		this.userID = userID;
		this.userName = userName;
		this.userPassWord = userPassWord;
	}
	public UserInfoModel( String userName, String userPassWord) {
		super();
		this.userName = userName;
		this.userPassWord = userPassWord;
	}
	public UserInfoModel() {
		
	}
	@Override
	public boolean equals(Object obj) {
		UserInfoModel userInfoModel = (UserInfoModel)obj;
		if (userInfoModel.getUserPassWord() == this.getUserPassWord() &&
				userInfoModel.getUserName().equals(this.getUserName())) {
			return true;
		}
		return  false;
	}
}
